<!DOCTYPE html><html lang="zh-CN"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="format-detection" content="telephone=no"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><link rel="icon" href="/images/icons/favicon-16x16.png?v=2.8.0" type="image/png" sizes="16x16"><link rel="icon" href="/images/icons/favicon-32x32.png?v=2.8.0" type="image/png" sizes="32x32"><meta name="description" content="以技能为导向的工作态度、以兴趣为导向的人际交流">
<meta property="og:type" content="website">
<meta property="og:title" content="ljyxsg的技术成长录">
<meta property="og:url" content="https://lou_jianyang.gitee.io/page/2/index.html">
<meta property="og:site_name" content="ljyxsg的技术成长录">
<meta property="og:description" content="以技能为导向的工作态度、以兴趣为导向的人际交流">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="ljyxsg">
<meta property="article:tag" content="ljyxsg的技术成长录">
<meta name="twitter:card" content="summary"><title>ljyxsg的技术成长录</title><link ref="canonical" href="https://lou_jianyang.gitee.io/page/2/index.html"><link rel="dns-prefetch" href="https://cdn.jsdelivr.net"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.12.1/css/all.min.css" type="text/css"><link rel="stylesheet" href="/css/index.css?v=2.8.0"><link rel="stylesheet" href="css/custom.css"><script>var Stun = window.Stun || {};
var CONFIG = {
  root: '/',
  algolia: undefined,
  assistSearch: undefined,
  fontIcon: {"prompt":{"success":"fas fa-check-circle","info":"fas fa-arrow-circle-right","warning":"fas fa-exclamation-circle","error":"fas fa-times-circle"},"copyBtn":"fas fa-copy"},
  sidebar: {"offsetTop":"20px","tocMaxDepth":6},
  header: {"enable":true,"showOnPost":true,"scrollDownIcon":false},
  postWidget: {"endText":true},
  nightMode: {"enable":true},
  back2top: {"enable":true},
  codeblock: {"style":"default","highlight":"light","wordWrap":false},
  reward: false,
  fancybox: false,
  zoomImage: {"gapAside":"20px"},
  galleryWaterfall: undefined,
  lazyload: false,
  pjax: undefined,
  externalLink: {"icon":{"enable":true,"name":"fas fa-external-link-alt"}},
  shortcuts: undefined,
  prompt: {"copyButton":"复制","copySuccess":"复制成功","copyError":"复制失败"},
  sourcePath: {"js":"js","css":"css","images":"images"},
};

window.CONFIG = CONFIG;</script><meta name="generator" content="Hexo 6.3.0"></head><body><div class="container" id="container"><header class="header" id="header"><div class="header-inner"><nav class="header-nav header-nav--fixed"><div class="header-nav-inner"><div class="header-nav-menubtn"><i class="fas fa-bars"></i></div><div class="header-nav-menu"><div class="header-nav-menu-item"><a class="header-nav-menu-item__link" href="/"><span class="header-nav-menu-item__icon"><i class="fas fa-home"></i></span><span class="header-nav-menu-item__text">首页</span></a></div><div class="header-nav-menu-item"><a class="header-nav-menu-item__link" href="/archives/"><span class="header-nav-menu-item__icon"><i class="fas fa-folder-open"></i></span><span class="header-nav-menu-item__text">归档</span></a></div><div class="header-nav-menu-item"><a class="header-nav-menu-item__link" href="/categories/"><span class="header-nav-menu-item__icon"><i class="fas fa-layer-group"></i></span><span class="header-nav-menu-item__text">分类</span></a></div><div class="header-nav-menu-item"><a class="header-nav-menu-item__link" href="/tags/"><span class="header-nav-menu-item__icon"><i class="fas fa-tags"></i></span><span class="header-nav-menu-item__text">标签</span></a></div><div class="header-nav-menu-item"><a class="header-nav-menu-item__link" href="/about/"><span class="header-nav-menu-item__icon"><i class="fas fa-address-card"></i></span><span class="header-nav-menu-item__text">关于</span></a></div></div><div class="header-nav-mode"><div class="mode"><div class="mode-track"><span class="mode-track-moon"></span><span class="mode-track-sun"></span></div><div class="mode-thumb"></div></div></div></div></nav><div class="header-banner"><div class="header-banner-info"><div class="header-banner-info__title">ljyxsg的技术成长录</div><div class="header-banner-info__subtitle">亿点点nice的ljy</div></div></div></div></header><main class="main" id="main"><div class="main-inner"><div class="content-wrap" id="content-wrap"><div class="content content-home" id="content"><section class="postlist"><article class="postlist-item post"><header class="post-header"><h1 class="post-title"><a class="post-title__link" href="/2023/01/29/idea%E5%BF%85%E8%A3%85%E7%9A%84%E6%8F%92%E4%BB%B6/">idea必装的插件</a></h1><div class="post-meta"><span class="post-meta-item post-meta-item--createtime"><span class="post-meta-item__icon"><i class="far fa-calendar-plus"></i></span><span class="post-meta-item__info">发表于</span><span class="post-meta-item__value">2023-01-29</span></span><span class="post-meta-item post-meta-item--updatetime"><span class="post-meta-item__icon"><i class="far fa-calendar-check"></i></span><span class="post-meta-item__info">更新于</span><span class="post-meta-item__value">2023-02-02</span></span></div></header><div class="post-body"><div class="post-excerpt">
        <h2 id="插件汇总"   >
          <a href="#插件汇总" class="heading-link"><i class="fas fa-link"></i></a><a href="#插件汇总" class="headerlink" title="插件汇总"></a>插件汇总</h2>
      <p>intellij idea是开发java应用程序常用的编辑器，为了提高开发的效率，可以在idea上安装各类插件。下面介绍几种常用的插件！</p>
<ul>
<li>Translation</li>
<li>TestMe</li>
<li>SQL Params Setter</li>
<li>SequenceDiagram</li>
<li>Save Actions</li>
<li>MyBatisPlus</li>
<li>EasyYapi</li>
<li>CodeGlance3</li>
<li>Background Image Plus +</li>
<li>AiXcoder Code Completer</li>
</ul>

        <h3 id="1-Translation"   >
          <a href="#1-Translation" class="heading-link"><i class="fas fa-link"></i></a><a href="#1-Translation" class="headerlink" title="1. Translation"></a>1. Translation</h3>
      <p>用来翻译文件，不过google翻译引擎自2022年11月1日起不能在中国使用了，可以切换程微软翻译引擎。效果如下图：</p>
<!-- ![](D:\website\website-hexo\source\uploads\tool\translation_1.png) -->

<!-- ![translation_1](uploads\tool\translation_1.png) -->
<img src="/2023/01/29/idea%E5%BF%85%E8%A3%85%E7%9A%84%E6%8F%92%E4%BB%B6/translation_1.png" class="" title="translation_1">


        <h2 id="2-TestMe"   >
          <a href="#2-TestMe" class="heading-link"><i class="fas fa-link"></i></a><a href="#2-TestMe" class="headerlink" title="2. TestMe"></a>2. TestMe</h2>
      <p>右键选择 <strong>generate</strong> -&gt; <strong>TestMe</strong> -&gt; <strong>JUnit5 &amp; Mockito</strong></p>
<!-- ![](D:\website\website-hexo\source\uploads\tool\TestMe_2.png) -->

<!-- ![TestMe_2](uploads\tool\TestMe_2.png) -->
<img src="/2023/01/29/idea%E5%BF%85%E8%A3%85%E7%9A%84%E6%8F%92%E4%BB%B6/TestMe_2.png" class="" title="TestMe_2">

<p>可以发现在test的同名目录下生成了一个HelloTest文件，点击testHello()方法左边的绿色三角形可以正常获取输出结果。</p>
<!-- ![](D:\website\website-hexo\source\uploads\tool\TestMe_3.png) -->

<!-- ![TestMe_3](uploads\tool\TestMe_3.png) -->
<img src="/2023/01/29/idea%E5%BF%85%E8%A3%85%E7%9A%84%E6%8F%92%E4%BB%B6/TestMe_3.png" class="" title="TestMe_3">


        <h2 id="3-SQL-Params-Setter"   >
          <a href="#3-SQL-Params-Setter" class="heading-link"><i class="fas fa-link"></i></a><a href="#3-SQL-Params-Setter" class="headerlink" title="3. SQL Params Setter"></a>3. SQL Params Setter</h2>
      <p>​	配合mybatis-plus-log使用，用于从控制台打印的sql日志中获取sql语句。</p>

        <h2 id="4-SequenceDiagram"   >
          <a href="#4-SequenceDiagram" class="heading-link"><i class="fas fa-link"></i></a><a href="#4-SequenceDiagram" class="headerlink" title="4. SequenceDiagram"></a>4. SequenceDiagram</h2>
      <p>​	选中方法右键<strong>SequenceDiagram</strong>生成类调用的时序图。</p>

        <h2 id="5-Save-Actions"   >
          <a href="#5-Save-Actions" class="heading-link"><i class="fas fa-link"></i></a><a href="#5-Save-Actions" class="headerlink" title="5. Save Actions"></a>5. Save Actions</h2>
      <ol>
<li>优化导入 </li>
<li>在文件保存、快捷方式、批处理（或组合）上运行 </li>
<li>重新格式化代码（整个文件或仅更改的文本） </li>
<li>重新排列代码（重新排序方法、字段等）</li>
</ol>

        <h2 id="6-MyBatisPlus"   >
          <a href="#6-MyBatisPlus" class="heading-link"><i class="fas fa-link"></i></a><a href="#6-MyBatisPlus" class="headerlink" title="6. MyBatisPlus"></a>6. MyBatisPlus</h2>
      <p>​	用于生成代码，根据java代码生成xml文件或根据xml文件生成java代码</p>

        <h2 id="7-EasyYapi"   >
          <a href="#7-EasyYapi" class="heading-link"><i class="fas fa-link"></i></a><a href="#7-EasyYapi" class="headerlink" title="7. EasyYapi"></a>7. EasyYapi</h2>
      <p>​	一款基于javadoc的api解析神器！将本地调试的代码快速导出到postman或者yapi,快速提升调试效率</p>
<p>​	下面介绍下使用步骤：</p>
<ol>
<li>在postman客户端上创建一个工作空间；</li>
</ol>
<!-- ![easyYapi_1](D:\website\website-hexo\source\uploads\tool\easyYapi_1.png) -->

<!-- ![easyYapi_1](uploads\tool\easyYapi_1.png) -->
<img src="/2023/01/29/idea%E5%BF%85%E8%A3%85%E7%9A%84%E6%8F%92%E4%BB%B6/easyYapi_1.png" class="" title="easyYapi_1">

<ol start="2">
<li>点击postman客户端头像 -&gt; settings -&gt; API keys -&gt; Generate API Key，生成postman访问token，并设置token的key值；</li>
</ol>
<!-- ![](D:\website\website-hexo\source\uploads\tool\easyYapi_2.png) -->

<!-- ![easyYapi_2](uploads\tool\easyYapi_2.png) -->
<img src="/2023/01/29/idea%E5%BF%85%E8%A3%85%E7%9A%84%E6%8F%92%E4%BB%B6/easyYapi_2.png" class="" title="easyYapi_2">

<!-- ![](D:\website\website-hexo\source\uploads\tool\easyYapi_3.png) -->

<!-- ![easyYapi_3](uploads\tool\easyYapi_3.png) -->
<img src="/2023/01/29/idea%E5%BF%85%E8%A3%85%E7%9A%84%E6%8F%92%E4%BB%B6/easyYapi_3.png" class="" title="easyYapi_3">

<ol start="3">
<li>在idea的easyYapi的插件界面输入token的地址；</li>
</ol>
<!-- ![](D:\website\website-hexo\source\uploads\tool\easyYapi_4.png) -->

<!-- ![easyYapi_4](uploads\tool\easyYapi_4.png) -->
<img src="/2023/01/29/idea%E5%BF%85%E8%A3%85%E7%9A%84%E6%8F%92%E4%BB%B6/easyYapi_4.png" class="" title="easyYapi_4">

<ol start="4">
<li>选中项目目录，右键 easyYapi -&gt; export postman, 选择刚创建的zhiyun工作空间，这时在客户端的collection目录下已经有这个项目的api文档；</li>
</ol>
<!-- ![](D:\website\website-hexo\source\uploads\tool\easyYapi_5.png) -->

<!-- ![easyYapi_5](uploads\tool\easyYapi_5.png) -->
<img src="/2023/01/29/idea%E5%BF%85%E8%A3%85%E7%9A%84%E6%8F%92%E4%BB%B6/easyYapi_5.png" class="" title="easyYapi_5">

<ol start="5">
<li>这时还无法根据url进行访问，可以发现url中”  “包裹的变量，创建一个local环境，并设置变量的ip:port，接下来就能正常使用postman调试本地项目了。</li>
</ol>
<!-- ![](D:\website\website-hexo\source\uploads\tool\easyYapi_6.png) -->

<!-- ![easyYapi_6](uploads\tool\easyYapi_6.png) -->
<img src="/2023/01/29/idea%E5%BF%85%E8%A3%85%E7%9A%84%E6%8F%92%E4%BB%B6/easyYapi_6.png" class="" title="easyYapi">


        <h2 id="8-CodeGlance3"   >
          <a href="#8-CodeGlance3" class="heading-link"><i class="fas fa-link"></i></a><a href="#8-CodeGlance3" class="headerlink" title="8. CodeGlance3"></a>8. CodeGlance3</h2>
      <p>​	安装该插件后，idea的左侧会有一个代码概览，通过鼠标点击可以快速定位想看的代码位置。</p>
<!-- ![](D:\website\website-hexo\source\uploads\tool\CodeGlance3_1.png) -->

<!-- ![CodeGlance3](uploads\tool\CodeGlance3_1.png) -->
<img src="/2023/01/29/idea%E5%BF%85%E8%A3%85%E7%9A%84%E6%8F%92%E4%BB%B6/CodeGlance3_1.png" class="" title="CodeGlance3_1">


        <h2 id="9-Background-Image-Plus"   >
          <a href="#9-Background-Image-Plus" class="heading-link"><i class="fas fa-link"></i></a><a href="#9-Background-Image-Plus" class="headerlink" title="9. Background Image Plus +"></a>9. Background Image Plus +</h2>
      <p>​	一款生成idea自定义背景的神器。</p>
<!-- ![](D:\website\website-hexo\source\uploads\tool\Background_Image_Plus+_1.png) -->

<!-- ![Background_Image_Plus+_1](uploads\tool\Background_Image_Plus+_1.png) -->
<img src="/2023/01/29/idea%E5%BF%85%E8%A3%85%E7%9A%84%E6%8F%92%E4%BB%B6/Background_Image_Plus+_1.png" class="" title="Background_Image_Plus+_1">

<ol>
<li>选择<strong>settings</strong> -&gt; <strong>Appearance</strong> -&gt; <strong>Background Image Plus</strong></li>
<li>循环遍历的图片目录</li>
<li>设置图片切换的时间间隔</li>
</ol>

        <h2 id="10-AiXcoder-Code-Completer"   >
          <a href="#10-AiXcoder-Code-Completer" class="heading-link"><i class="fas fa-link"></i></a><a href="#10-AiXcoder-Code-Completer" class="headerlink" title="10. AiXcoder Code Completer"></a>10. AiXcoder Code Completer</h2>
      <p>​	根据你的输入智能生成代码，提高开发效率。</p>
</div></div></article><article class="postlist-item post"><header class="post-header"><h1 class="post-title"><a class="post-title__link" href="/2023/01/28/rpc%E6%9E%B6%E6%9E%84%E8%AE%BE%E8%AE%A1/">rpc架构设计</a></h1><div class="post-meta"><span class="post-meta-item post-meta-item--createtime"><span class="post-meta-item__icon"><i class="far fa-calendar-plus"></i></span><span class="post-meta-item__info">发表于</span><span class="post-meta-item__value">2023-01-28</span></span><span class="post-meta-item post-meta-item--updatetime"><span class="post-meta-item__icon"><i class="far fa-calendar-check"></i></span><span class="post-meta-item__info">更新于</span><span class="post-meta-item__value">2023-02-02</span></span></div></header><div class="post-body"><div class="post-excerpt">
        <h1 id="Buffer的数据读取"   >
          <a href="#Buffer的数据读取" class="heading-link"><i class="fas fa-link"></i></a><a href="#Buffer的数据读取" class="headerlink" title="Buffer的数据读取"></a>Buffer的数据读取</h1>
      
        <h3 id="flip-方法-buffer数据切换读模式"   >
          <a href="#flip-方法-buffer数据切换读模式" class="heading-link"><i class="fas fa-link"></i></a><a href="#flip-方法-buffer数据切换读模式" class="headerlink" title="flip()方法(buffer数据切换读模式)"></a>flip()方法(buffer数据切换读模式)</h3>
      <!-- ![buffer数据读取flip1](uploads\rpc\buffer数据读取flip1.png) -->
<img src="/2023/01/28/rpc%E6%9E%B6%E6%9E%84%E8%AE%BE%E8%AE%A1/buffer%E6%95%B0%E6%8D%AE%E8%AF%BB%E5%8F%96flip1.png" class="" title="buffer数据读取flip1">

<figure class="highlight java"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">//1.创建一个指定长度的缓冲区</span></span><br><span class="line"><span class="type">ByteBuffer</span> <span class="variable">allocate</span> <span class="operator">=</span> ByteBuffer.allocate(<span class="number">10</span>);</span><br><span class="line">allocate.put(<span class="string">&quot;0123&quot;</span>.getBytes());</span><br><span class="line">System.out.println(<span class="string">&quot;position:&quot;</span> + allocate.position()); <span class="comment">//4</span></span><br><span class="line">System.out.println(<span class="string">&quot;limit:&quot;</span> + allocate.limit());<span class="comment">//10</span></span><br><span class="line">System.out.println(<span class="string">&quot;capacity:&quot;</span> +allocate.capacity());<span class="comment">//10</span></span><br><span class="line">System.out.println(<span class="string">&quot;remaining:&quot;</span> + allocate.remaining()); <span class="comment">//6</span></span><br><span class="line"></span><br><span class="line"><span class="comment">//2.切换读模式</span></span><br><span class="line">System.out.println(<span class="string">&quot;数据读取--------------&quot;</span>);</span><br><span class="line">allocate.flip();</span><br><span class="line">System.out.println(<span class="string">&quot;position:&quot;</span> + allocate.position()); <span class="comment">//0</span></span><br><span class="line">System.out.println(<span class="string">&quot;limit:&quot;</span> + allocate.limit());<span class="comment">//4</span></span><br><span class="line">System.out.println(<span class="string">&quot;capacity:&quot;</span> +allocate.capacity());<span class="comment">//10</span></span><br><span class="line">System.out.println(<span class="string">&quot;remaining:&quot;</span> + allocate.remaining()); <span class="comment">//4</span></span><br><span class="line"><span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i &lt; allocate.limit(); i++) &#123;</span><br><span class="line">System.out.println(allocate.get());</span><br><span class="line">&#125;</span><br></pre></td></tr></table></div></figure>




        <h3 id="clear-方法-buffer数据切换写模式"   >
          <a href="#clear-方法-buffer数据切换写模式" class="heading-link"><i class="fas fa-link"></i></a><a href="#clear-方法-buffer数据切换写模式" class="headerlink" title="clear()方法(buffer数据切换写模式)"></a>clear()方法(buffer数据切换写模式)</h3>
      <!-- ![buffer数据读取clear2.png](uploads\rpc\buffer数据读取clear2.png) -->
<img src="/2023/01/28/rpc%E6%9E%B6%E6%9E%84%E8%AE%BE%E8%AE%A1/buffer%E6%95%B0%E6%8D%AE%E8%AF%BB%E5%8F%96clear2.png" class="" title="buffer数据读取clear2">

<figure class="highlight java"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">//切换写模式</span></span><br><span class="line">System.out.println(<span class="string">&quot;切换写模式-----------------&quot;</span>);</span><br><span class="line">allocate.clear();<span class="comment">//position=0;limit=capacity</span></span><br><span class="line">allocate.put(<span class="string">&quot;abc&quot;</span>.getBytes());</span><br><span class="line">System.out.println(<span class="keyword">new</span> <span class="title class_">String</span>(allocate.array()));</span><br></pre></td></tr></table></div></figure>

</div></div></article><article class="postlist-item post"><header class="post-header"><h1 class="post-title"><a class="post-title__link" href="/2023/01/27/%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%9F%BA%E7%A1%80%E5%92%8Cjava%E8%AF%AD%E8%A8%80%E7%89%B9%E6%80%A7/">java面试汇总</a></h1><div class="post-meta"><span class="post-meta-item post-meta-item--createtime"><span class="post-meta-item__icon"><i class="far fa-calendar-plus"></i></span><span class="post-meta-item__info">发表于</span><span class="post-meta-item__value">2023-01-27</span></span><span class="post-meta-item post-meta-item--updatetime"><span class="post-meta-item__icon"><i class="far fa-calendar-check"></i></span><span class="post-meta-item__info">更新于</span><span class="post-meta-item__value">2023-02-10</span></span></div></header><div class="post-body"><div class="post-excerpt">
        <h5 id="操作系统"   >
          <a href="#操作系统" class="heading-link"><i class="fas fa-link"></i></a><a href="#操作系统" class="headerlink" title="操作系统"></a>操作系统</h5>
      <ul>
<li>进程与线程的联系与区别：<ul>
<li>线程是资源分配的最小工作单元，进程是程序执行的最小单元；</li>
<li>进程使用独立的数据空间，而线程共享进程的数据空间。</li>
</ul>
</li>
<li>Linux常用命令<ul>
<li>awk&#x2F;top&#x2F;netstat&#x2F;grep&#x2F;less&#x2F;tail</li>
</ul>
</li>
</ul>

        <h5 id="网络知识"   >
          <a href="#网络知识" class="heading-link"><i class="fas fa-link"></i></a><a href="#网络知识" class="headerlink" title="网络知识"></a>网络知识</h5>
      <ul>
<li>TCP特点：基于链接(点对点)；双工通信；可靠传输；拥塞控制；基于字节流而非报文</li>
<li>TCP实现细节：8种报文状态；滑动窗口机制；KeepAlive</li>
</ul>

        <h5 id="设计模式"   >
          <a href="#设计模式" class="heading-link"><i class="fas fa-link"></i></a><a href="#设计模式" class="headerlink" title="设计模式"></a>设计模式</h5>
      <ul>
<li>不同的设计模式在不同场景中的应用<ul>
<li>1、工厂模式：Spring如何创建Bean</li>
<li>2、代理模式：Motan服务的动态代理</li>
<li>3、责任链模式：Netty消息处理的方式</li>
<li>4、适配器模式：SLF4J如何支持Log4J</li>
<li>5、观察着模式：GRPC是如何支持流式请求的</li>
<li>6、构造者模式：PB对象使用builder</li>
</ul>
</li>
<li>单例模式<ul>
<li>1、静态初始化(饿汉式)</li>
<li>2、双重检查（懒汉式）</li>
<li>3、单例注册表</li>
</ul>
</li>
</ul>

        <h5 id="java语言特性"   >
          <a href="#java语言特性" class="heading-link"><i class="fas fa-link"></i></a><a href="#java语言特性" class="headerlink" title="java语言特性"></a>java语言特性</h5>
      <ul>
<li><p>HashMap:</p>
<ul>
<li><p>数组加链表的实现方式：</p>
<p>​		数组中的每一项是一个链表。通过计算存入对象的 HashCode，来计算对象在数组中要存入的位置，用链表来解决散列冲突，链表中的节点存储的是键值对。</p>
</li>
<li><p>容量大小为2的幂次方的原因</p>
<p>​		可以通过按位与操作来计算余数，比求模要快。</p>
</li>
<li><p>并发读写会有什么风险</p>
<p>​		HashMap 是非线程安全的，在多线程 put 的情况下，有可能在容量超过填充因子时进行 rehash，因为 HashMap 为了避免尾部遍历，在链表插入元素时使用头插法，多线程的场景下有可能会产生死循环</p>
</li>
</ul>
</li>
<li><p>ConcurrentHashMap（阅读源码）:</p>
<ul>
<li>并发控制与分段锁思想</li>
<li>1.8中的CAS自旋锁</li>
<li>红黑树的启用条件</li>
</ul>
</li>
<li><p>版本特性</p>
<ul>
<li><p>1.8：</p>
<ul>
<li>Lambda表达式</li>
<li>Stream API</li>
<li>方法引用</li>
<li>接口默认方法</li>
<li>Metaspace替换PermGen</li>
</ul>
</li>
<li><p>1.9-1.10:</p>
<ul>
<li>模块系统</li>
<li>默认G1回收器</li>
<li>接口私有方法</li>
<li>局部变量推断</li>
<li>Graal编译器</li>
</ul>
</li>
<li><p>1.11</p>
<ul>
<li>ZGC</li>
<li>字符串API增强</li>
<li>内建HTTP Client</li>
</ul>
</li>
</ul>
</li>
</ul>

        <h1 id="加分项"   >
          <a href="#加分项" class="heading-link"><i class="fas fa-link"></i></a><a href="#加分项" class="headerlink" title="加分项"></a>加分项</h1>
      <ul>
<li>1、知识点与典型的业务场景关联</li>
<li>2、用反例来描述实际场景中误用的危害</li>
<li>3、与知识点相关的优化点</li>
<li>4、与支持点相关的最新技术趋势</li>
<li>5、在了解的前提下，尽量增加回答内容深度</li>
</ul>
</div></div></article><article class="postlist-item post"><header class="post-header"><h1 class="post-title"><a class="post-title__link" href="/2023/01/27/webservice%E6%A1%86%E6%9E%B6jersey/">webservice框架jersey</a></h1><div class="post-meta"><span class="post-meta-item post-meta-item--createtime"><span class="post-meta-item__icon"><i class="far fa-calendar-plus"></i></span><span class="post-meta-item__info">发表于</span><span class="post-meta-item__value">2023-01-27</span></span><span class="post-meta-item post-meta-item--updatetime"><span class="post-meta-item__icon"><i class="far fa-calendar-check"></i></span><span class="post-meta-item__info">更新于</span><span class="post-meta-item__value">2023-02-02</span></span></div></header><div class="post-body"><div class="post-excerpt">
        <h4 id="webservice框架jersey"   >
          <a href="#webservice框架jersey" class="heading-link"><i class="fas fa-link"></i></a><a href="#webservice框架jersey" class="headerlink" title="webservice框架jersey"></a>webservice框架jersey</h4>
      
        <h5 id="一、概念"   >
          <a href="#一、概念" class="heading-link"><i class="fas fa-link"></i></a><a href="#一、概念" class="headerlink" title="一、概念"></a>一、概念</h5>
      <ul>
<li>REST:Representational State Transfer,表述性状态转移</li>
<li>SOAP:Simple Object Access Procotal,简单对象访问协议</li>
</ul>

        <h5 id="二、webservice结构图"   >
          <a href="#二、webservice结构图" class="heading-link"><i class="fas fa-link"></i></a><a href="#二、webservice结构图" class="headerlink" title="二、webservice结构图"></a>二、webservice结构图</h5>
      <!-- ![webservice结构图](uploads\web\webservice结构图.png) -->
<img src="/2023/01/27/webservice%E6%A1%86%E6%9E%B6jersey/webservice%E7%BB%93%E6%9E%84%E5%9B%BE.png" class="" title="This is an test image">

<p>三、关于REST风格</p>
<ul>
<li>1、对资源的各种操作不会改变资源标识符。GET:获取资源；POST:创建资源；PUT:创建或更新资源；DELETE:删除资源；对应自然界中的“生、见、变、灭”规律。</li>
<li>2、网络上所有事物都被抽象为资源。</li>
<li>3、所有的操作都是无状态的，REST要求每个客户端负责保存自己的状态，服务器每次与客户端的沟通中获得足够多的内容，以识别客户端当前的状态，从而决定给与客户端怎样的反馈。</li>
</ul>
</div></div></article><article class="postlist-item post"><header class="post-header"><h1 class="post-title"><a class="post-title__link" href="/2023/01/19/%E5%A6%82%E4%BD%95%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E7%BD%91%E7%AB%99/">blog网站搭建</a></h1><div class="post-meta"><span class="post-meta-item post-meta-item--createtime"><span class="post-meta-item__icon"><i class="far fa-calendar-plus"></i></span><span class="post-meta-item__info">发表于</span><span class="post-meta-item__value">2023-01-19</span></span><span class="post-meta-item post-meta-item--updatetime"><span class="post-meta-item__icon"><i class="far fa-calendar-check"></i></span><span class="post-meta-item__info">更新于</span><span class="post-meta-item__value">2023-02-10</span></span></div></header><div class="post-body"><div class="post-excerpt"><hr>

        <h2 id="如何搭建个人博客网站"   >
          <a href="#如何搭建个人博客网站" class="heading-link"><i class="fas fa-link"></i></a><a href="#如何搭建个人博客网站" class="headerlink" title="如何搭建个人博客网站"></a>如何搭建个人博客网站</h2>
      <blockquote>
<p>作为程序员，如果你喜欢输出技术文章的话，一定有过搭建个人博客网站的想法。对比了好多博客框架之后，我发现Hexo+<code>hexo-theme-stun</code>主题搭建的博客网站，不仅界面漂亮，而且功能强大。今天带大家使用Hexo搭建一个靓丽的博客网站，希望对大家有所帮助！</p>
</blockquote>

        <h2 id="Hexo简介"   >
          <a href="#Hexo简介" class="heading-link"><i class="fas fa-link"></i></a><a href="#Hexo简介" class="headerlink" title="Hexo简介"></a>Hexo简介</h2>
      <p>Hexo是一个快速、简洁且高效的博客框架。我们可以使用Markdown写文章，然后通过Hexo生成静态网站，Hexo的主题非常丰富，很多你见过的博客都是用它生成的。</p>

        <h2 id="hexo-theme-stun主题"   >
          <a href="#hexo-theme-stun主题" class="heading-link"><i class="fas fa-link"></i></a><a href="#hexo-theme-stun主题" class="headerlink" title="hexo-theme-stun主题"></a>hexo-theme-stun主题</h2>
      <p>使用Hexo时，我们一般会搭配第三方主题来使用，这里推荐一款基于Material Design设计的主题<code>hexo-theme-stun</code>，界面简单漂亮，文章内容美观易读。响应式设计，博客在桌面端、平板、手机等设备上均能很好的展现。内置丰富插件，功能强大。</p>

        <h2 id="演示效果"   >
          <a href="#演示效果" class="heading-link"><i class="fas fa-link"></i></a><a href="#演示效果" class="headerlink" title="演示效果"></a>演示效果</h2>
      <p>我们先来看下效果，效果还是很不错的，想搭建个人博客的朋友可以试下！</p>
<!-- ![stun_view.blog-build1](uploads\project\project\stun_view.blog-build1.png) -->
<img src="/2023/01/19/%E5%A6%82%E4%BD%95%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E7%BD%91%E7%AB%99/stun_view.blog-build1.png" class="" title="stun_view.blog-build1">


        <h2 id="搭建"   >
          <a href="#搭建" class="heading-link"><i class="fas fa-link"></i></a><a href="#搭建" class="headerlink" title="搭建"></a>搭建</h2>
      <blockquote>
<p>我们将先使用Hexo搭建一个基本的博客网站，然后切换到<code>hexo-theme-stun</code>主题。</p>
</blockquote>
<ul>
<li>首先使用如下命令安装<code>hexo-cli</code>，看名字就知道是Hexo的CLI工具；</li>
</ul>
<figure class="highlight sh"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install -g hexo-cli</span><br></pre></td></tr></table></div></figure>

<ul>
<li>安装成功后初始化一个博客目录，并进入该目录，然后安装依赖；</li>
</ul>
<figure class="highlight sh"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 初始化博客目录</span></span><br><span class="line">hexo init website-hexo</span><br><span class="line"><span class="comment"># 进入博客目录</span></span><br><span class="line"><span class="built_in">cd</span> website-hexo</span><br><span class="line"><span class="comment"># 安装博客相关依赖</span></span><br><span class="line">npm install</span><br><span class="line"></span><br></pre></td></tr></table></div></figure>

<ul>
<li>这样一个基本的博客网站就搭建完毕了，是不是秒建博客网站，然后使用如下命令启动博客网站;</li>
</ul>
<figure class="highlight sh"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">hexo s</span><br><span class="line"></span><br></pre></td></tr></table></div></figure>

<ul>
<li>启动成功后我们可以访问下主页，用过Hexo的朋友应该知道，Hexo要搭配主题来使用，否则真的很丑，访问地址：<span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="http://localhost:4000/" >http://localhost:4000/</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span></li>
</ul>
<!-- <img src = "..\uploads\project\hexo_start_01.blog-build2.png"> -->
<!-- ![hexo_start_01.blog-build2](uploads\project\hexo_start_01.blog-build2.png) -->
<img src="/2023/01/19/%E5%A6%82%E4%BD%95%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E7%BD%91%E7%AB%99/hexo_start_01.blog-build2.png" class="" title="hexo_start_01.blog-build2">


        <h2 id="配置"   >
          <a href="#配置" class="heading-link"><i class="fas fa-link"></i></a><a href="#配置" class="headerlink" title="配置"></a>配置</h2>
      <blockquote>
<p>搭建博客网站，有些配置需要自定义，接下来我们来讲下Hexo的整体配置和<code>hexo-theme-stun</code>的主题配置。</p>
</blockquote>

        <h3 id="Hexo整体配置"   >
          <a href="#Hexo整体配置" class="heading-link"><i class="fas fa-link"></i></a><a href="#Hexo整体配置" class="headerlink" title="Hexo整体配置"></a>Hexo整体配置</h3>
      <blockquote>
<p>支持Hexo的主题有很多，这里选择了我认为比较漂亮的一个<code>hexo-theme-stun</code>。</p>
</blockquote>

        <h3 id="1-首先下载主题"   >
          <a href="#1-首先下载主题" class="heading-link"><i class="fas fa-link"></i></a><a href="#1-首先下载主题" class="headerlink" title="1.首先下载主题"></a>1.首先下载主题</h3>
      <p>  解压到项目的<code>themes</code>目录下，下载地址：<span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://github.com/liuyib/hexo-theme-stun" >https://github.com/liuyib/hexo-theme-stun</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span></p>
<!-- <img src = "..\uploads\project\stun_intro.blog-build3.png"> -->
<!-- ![stun_intro.blog-build3](uploads\project\stun_intro.blog-build3.png) -->
<img src="/2023/01/19/%E5%A6%82%E4%BD%95%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E7%BD%91%E7%AB%99/stun_intro.blog-build3.png" class="" title="stun_intro.blog-build3">


        <h3 id="2-修改项目根目录下的配置文件-config-yml"   >
          <a href="#2-修改项目根目录下的配置文件-config-yml" class="heading-link"><i class="fas fa-link"></i></a><a href="#2-修改项目根目录下的配置文件-config-yml" class="headerlink" title="2.修改项目根目录下的配置文件_config.yml"></a>2.修改项目根目录下的配置文件<code>_config.yml</code></h3>
      <p>  该文件为Hexo的整体配置，将<code>theme</code>属性改为<code>hexo-theme-stun</code>；</p>
<figure class="highlight sh"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">theme: hexo-theme-stun</span><br></pre></td></tr></table></div></figure>


        <h3 id="3-添加网站、网址和首页配置"   >
          <a href="#3-添加网站、网址和首页配置" class="heading-link"><i class="fas fa-link"></i></a><a href="#3-添加网站、网址和首页配置" class="headerlink" title="3.添加网站、网址和首页配置"></a>3.添加网站、网址和首页配置</h3>
      <p>  <code>_config.yml</code>文件不仅可以改主题，很多网站配置也可以更改，比如网站配置、网址配置、首页配置等。</p>
<figure class="highlight sh"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 网站配置</span></span><br><span class="line">title: ljyxsg的技术成长录</span><br><span class="line">subtitle: <span class="string">&#x27;ljyxsg的技术成长录&#x27;</span></span><br><span class="line">description: <span class="string">&#x27;以技能为导向的工作态度、以兴趣为导向的人际交流&#x27;</span></span><br><span class="line">keywords: ljyxsg的技术成长录</span><br><span class="line">author: ljyxsg</span><br><span class="line">language: zh-CN</span><br><span class="line">timezone: <span class="string">&#x27;Asia/Shanghai&#x27;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 网址配置</span></span><br><span class="line">url: http://ljyxsg.github.io</span><br><span class="line">permalink: :year/:month/:day/:title/</span><br><span class="line"></span><br><span class="line"><span class="comment"># 首页配置</span></span><br><span class="line">index_generator:</span><br><span class="line">  path: <span class="string">&#x27;&#x27;</span></span><br><span class="line">  per_page: 10</span><br><span class="line">  order_by: -<span class="built_in">date</span></span><br><span class="line">  </span><br><span class="line"><span class="comment"># 分页配置</span></span><br><span class="line">per_page: 10</span><br><span class="line">pagination_dir: page</span><br></pre></td></tr></table></div></figure>

        <h3 id="4-添加部署路径"   >
          <a href="#4-添加部署路径" class="heading-link"><i class="fas fa-link"></i></a><a href="#4-添加部署路径" class="headerlink" title="4.添加部署路径"></a>4.添加部署路径</h3>
      <p>  打开根目录下的_config.yml,将部署路径设置为自己的gitee仓库地址</p>
<figure class="highlight plaintext"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">deploy:</span><br><span class="line">  type: git</span><br><span class="line">  repo: https://gitee.com/lou_jianyang/lou_jianyang.git</span><br><span class="line">  branch: master</span><br></pre></td></tr></table></div></figure>

        <h3 id="5-设置首页的背景图和文字"   >
          <a href="#5-设置首页的背景图和文字" class="heading-link"><i class="fas fa-link"></i></a><a href="#5-设置首页的背景图和文字" class="headerlink" title="5.设置首页的背景图和文字"></a>5.设置首页的背景图和文字</h3>
      <p>  修改_config.stun.yml文件</p>
<figure class="highlight plaintext"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br></pre></td><td class="code"><pre><span class="line">header:</span><br><span class="line">  enable: true</span><br><span class="line">  show_on:</span><br><span class="line">    post: true</span><br><span class="line">  height: 80%</span><br><span class="line">  # 将背景图的状态设置true</span><br><span class="line">  bg_image:</span><br><span class="line">    enable: true</span><br><span class="line">    # 如果在theme路径下设置背景图片(source/images): /images/avatar.png</span><br><span class="line">    # 如果在source路径下设置背景图片(source/uploads): /uploads/avatar.png</span><br><span class="line">    url: /uploads/dog.jpg</span><br><span class="line">  banner:</span><br><span class="line">    # 将banner的编辑状态打开</span><br><span class="line">    enable: true</span><br><span class="line">    # 设置博客的标题</span><br><span class="line">    title: ljyxsg的技术成长录</span><br><span class="line">    # 设置博客的副标题</span><br><span class="line">    subtitle: 亿点点nice的ljy</span><br><span class="line">  # 为博客打开阴影并添加阴影度</span><br><span class="line">  mask:</span><br><span class="line">    enable: true</span><br><span class="line">    # mask值范围: 0 ~ 1)</span><br><span class="line">    opacity: 0.5</span><br></pre></td></tr></table></div></figure>

        <h2 id="添加固定页面"   >
          <a href="#添加固定页面" class="heading-link"><i class="fas fa-link"></i></a><a href="#添加固定页面" class="headerlink" title="添加固定页面"></a>添加固定页面</h2>
      <ul>
<li>在首页顶部有一些导航按钮，如标签、分类、归档等，如果我们没创建对应页面的话，会无法访问；<!-- <img src = "..\uploads\project\page.blog-build4.png"> -->
<!-- ![page.blog-build4](uploads\project\page.blog-build4.png) -->
<img src="/2023/01/19/%E5%A6%82%E4%BD%95%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E7%BD%91%E7%AB%99/page.blog-build4.png" class="" title="page.blog-build4"></li>
<li>使用<code>hexo new page &quot;categories&quot;</code>命令新建分类页，分类页至少包含如下内容<figure class="highlight sh"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">---</span><br><span class="line">title: categories</span><br><span class="line"><span class="built_in">date</span>: 2023-01-19 15:28:49</span><br><span class="line"><span class="built_in">type</span>: <span class="string">&quot;categories&quot;</span></span><br><span class="line">layout: <span class="string">&quot;categories&quot;</span></span><br><span class="line">---</span><br></pre></td></tr></table></div></figure></li>
<li>使用<code>hexo new page &quot;tags&quot;</code>命令新建分类页，分类页至少包含如下内容</li>
</ul>
<figure class="highlight sh"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">---</span><br><span class="line">title: tags</span><br><span class="line"><span class="built_in">date</span>: 2021-09-06 10:25:04</span><br><span class="line"><span class="built_in">type</span>: <span class="string">&quot;tags&quot;</span></span><br><span class="line">layout: <span class="string">&quot;tags&quot;</span></span><br><span class="line">---</span><br></pre></td></tr></table></div></figure>

<ul>
<li>使用<code>hexo new page &quot;about&quot;</code>命令新建关于页，关于页至少包含如下内容；</li>
</ul>
<figure class="highlight sh"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">---</span><br><span class="line">title: about</span><br><span class="line"><span class="built_in">date</span>: 2021-09-06 10:28:56</span><br><span class="line"><span class="built_in">type</span>: <span class="string">&quot;about&quot;</span></span><br><span class="line">layout: <span class="string">&quot;about&quot;</span></span><br><span class="line">---</span><br></pre></td></tr></table></div></figure>
<ul>
<li>页面都创建成功后，项目目录结构如下，这里贴下目录，方便大家理解。<!-- <img src = "..\uploads\project\directory.blog-build5.jpeg"> -->
<!-- ![directory.blog-build5](uploads\project\directory.blog-build5.jpeg) -->
<img src="/2023/01/19/%E5%A6%82%E4%BD%95%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E7%BD%91%E7%AB%99/directory.blog-build5.jpeg" class="" title="directory.blog-build5"></li>
</ul>

        <h2 id="修改网站的一些基础配置"   >
          <a href="#修改网站的一些基础配置" class="heading-link"><i class="fas fa-link"></i></a><a href="#修改网站的一些基础配置" class="headerlink" title="修改网站的一些基础配置"></a>修改网站的一些基础配置</h2>
      
        <h2 id="编写文章"   >
          <a href="#编写文章" class="heading-link"><i class="fas fa-link"></i></a><a href="#编写文章" class="headerlink" title="编写文章"></a>编写文章</h2>
      <p>  在编写文章前将 <code>_config.yml</code>文件中的<code>post_asset_folder</code>设置为<code>true</code>。</p>
<figure class="highlight plaintext"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo n &#x27;我的第一篇博客&#x27;</span><br></pre></td></tr></table></div></figure>
<p>  在<code>source/_posts</code>目录下生成<code>我的第一篇博客.md</code>的同时也会生成一个<code>我的第一篇博客</code>文件夹,可以把文章中的图片放在该文件夹下。<br>使用markdown的语法编辑博客页面,具体语法详情可见<span class="exturl"><a class="exturl__link"   target="_blank" rel="noopener" href="https://markdown.com.cn/cheat-sheet.html" >markdown语法链接</a><span class="exturl__icon"><i class="fas fa-external-link-alt"></i></span></span>。<br>  要注意的是hexo3.0版本后推荐使用以下语法插入图片:</p>
<figure class="highlight plaintext"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&#123;% asset_img example.jpeg this is an example! %&#125;</span><br></pre></td></tr></table></div></figure>
<p>  写完文章后运行以下命令，将博客代码上传到gitee</p>
<figure class="highlight plaintext"><div class="table-container"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">hexo clean &amp; hexo g </span><br><span class="line">hexo d</span><br></pre></td></tr></table></div></figure>
<img src="/2023/01/19/%E5%A6%82%E4%BD%95%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E7%BD%91%E7%AB%99/ljyxsg-blog.build6.png" class="" title="ljyxsg-blog.build6">


        <h2 id="将博客项目生成Gitee-Page"   >
          <a href="#将博客项目生成Gitee-Page" class="heading-link"><i class="fas fa-link"></i></a><a href="#将博客项目生成Gitee-Page" class="headerlink" title="将博客项目生成Gitee Page"></a>将博客项目生成Gitee Page</h2>
      <ol>
<li>注意，需要将项目的名称和仓库名称设置为相同，这样码云的域名后面不需要加额外的路径。<img src="/2023/01/19/%E5%A6%82%E4%BD%95%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E7%BD%91%E7%AB%99/gitee_page.build7.png" class="" title="gitee_page.build7">
  在博客项目页面选择<code>服务</code> -&gt; <code>Gitee Pages</code>,第一次开通需要输入身份证信息，大约在两个工作日能够审核成功。</li>
<li>审核成功后，就可以发布博客页面，不过在这之前需要将项目设置为开源，操作如下图所示:<br>  <code>管理</code> -&gt; <code>选择开源</code> -&gt; <code>勾选我同意</code> -&gt; <code>点击确定</code><img src="/2023/01/19/%E5%A6%82%E4%BD%95%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E7%BD%91%E7%AB%99/open.build8.png" class="" title="open.build8">
<img src="/2023/01/19/%E5%A6%82%E4%BD%95%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E7%BD%91%E7%AB%99/open.build9.png" class="" title="open.build9"></li>
<li>点击 <code>管理</code> -&gt; <code>选择分支</code> -&gt; <code>强制https</code> -&gt; <code>更新</code> -&gt; <code>点击链接</code> 可以跳转到博客页面。<img src="/2023/01/19/%E5%A6%82%E4%BD%95%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E7%BD%91%E7%AB%99/publish1.build10.png" class="" title="publish1.build10">
<img src="/2023/01/19/%E5%A6%82%E4%BD%95%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E7%BD%91%E7%AB%99/publish2.build11.png" class="" title="publish2.build11"></li>
</ol>
</div></div></article></section><nav class="paginator"><div class="paginator-inner"><a class="extend prev" rel="prev" href="/"><i class="fas fa-angle-left"></i></a><a class="page-number" href="/">1</a><span class="page-number current">2</span></div></nav></div></div><div class="sidebar-wrap" id="sidebar-wrap"><aside class="sidebar" id="sidebar"><section class="sidebar-toc hide"></section><!-- ov = overview--><section class="sidebar-ov"><div class="sidebar-ov-author"><div class="sidebar-ov-author__avatar"><img class="sidebar-ov-author__avatar_img" src="/images/icons/stun-logo.svg" alt="avatar"></div><p class="sidebar-ov-author__text">Hello Stun</p></div><div class="sidebar-ov-state"><a class="sidebar-ov-state-item sidebar-ov-state-item--posts" href="/archives/"><div class="sidebar-ov-state-item__count">15</div><div class="sidebar-ov-state-item__name">归档</div></a><a class="sidebar-ov-state-item sidebar-ov-state-item--categories" href="/categories/"><div class="sidebar-ov-state-item__count">9</div><div class="sidebar-ov-state-item__name">分类</div></a><a class="sidebar-ov-state-item sidebar-ov-state-item--tags" href="/tags/"><div class="sidebar-ov-state-item__count">2</div><div class="sidebar-ov-state-item__name">标签</div></a></div><div class="sidebar-ov-cc"><a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en" target="_blank" rel="noopener" data-popover="知识共享许可协议" data-popover-pos="up"><img src="/images/cc-by-nc-sa.svg"></a></div></section></aside></div><div class="clearfix"></div></div></main><footer class="footer" id="footer"><div class="footer-inner"><div><span>Copyright © 2023</span><span class="footer__icon"><i class="fas fa-heart"></i></span><span>ljyxsg</span></div><div><span>由 <a href="http://hexo.io/" title="Hexo" target="_blank" rel="noopener">Hexo</a> 强力驱动</span><span> v6.3.0</span><span class="footer__devider">|</span><span>主题 - <a href="https://github.com/liuyib/hexo-theme-stun/" title="Stun" target="_blank" rel="noopener">Stun</a></span><span> v2.8.0</span></div></div></footer><div class="loading-bar" id="loading-bar"><div class="loading-bar__progress"></div></div><div class="back2top" id="back2top"><span class="back2top__icon"><i class="fas fa-rocket"></i></span></div></div><script src="https://cdn.jsdelivr.net/npm/jquery@v3.4.1/dist/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-animate@1.5.2/velocity.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-animate@1.5.2/velocity.ui.min.js"></script><script src="/js/utils.js?v=2.8.0"></script><script src="/js/stun-boot.js?v=2.8.0"></script><script src="/js/scroll.js?v=2.8.0"></script><script src="/js/header.js?v=2.8.0"></script><script src="/js/sidebar.js?v=2.8.0"></script></body></html>